package com.winxuan.channel.service.commodity;

import java.util.List;
import java.util.Map;

import com.winxuan.channel.model.commodity.CommoditySnap;
import com.winxuan.support.dao.Finder;
import com.winxuan.util.pagination.Pagination;


public interface SnapService {
	
	
	public List<CommoditySnap> getCommoditySnapByDistribute(Integer distribute,Integer commodity,Pagination pagination);

	public boolean addCommoditySnap(CommoditySnap commoditySnap);
	
	public boolean updateCommoditySnap(CommoditySnap commoditySnap);
	
	public boolean delCommoditySnap(CommoditySnap commoditySnap);
	
	public CommoditySnap getCommoditySnap(Integer distribute,Integer commodity);
	
	public List<CommoditySnap> getCommoditySnapList(Finder finder,Pagination pagination);
	
	public List<CommoditySnap> searchByMap(Map<String, Object> params,Pagination pagination);
}
